﻿package ca.newcommerce.youtube.data 
{
	/**
	 * ...
	 * @author Martin Legris ( http://blog.martinlegris.com )
	 */
	
	public class DirectUploadData
	{
		protected var _url:String;
		protected var _token:String;

		public function get url():String { return _url; }
		public function get token():String { return _token; }
		
		public static function fromXML(xml:XML):DirectUploadData
		{
			var data:DirectUploadData = new DirectUploadData();
			data._url = xml.url.toString();
			data._token = xml.token.toString();
			
			return data;
		}
	}
}